package com.k2data.k2app.mapper;

import com.k2data.k2app.domain.po.JobTaskDO;
import com.k2data.k2app.domain.po.TaskDTO;
import com.k2data.k2app.mybatis.mapper.K2Mapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface JobTaskMapper extends K2Mapper<JobTaskDO> {

    @Override
    int insert(JobTaskDO jobTaskDO);
    List<JobTaskDO> getByCondition(JobTaskDO jobTaskDO);
    int updateStatusByJob(JobTaskDO jobTaskDO);
    int deleteByCondition(JobTaskDO jobTaskDO);
    JobTaskDO getLatestByTaskId(JobTaskDO jobTaskDO);
    List<JobTaskDO> queryList(JobTaskDO jobTaskDO);
}